package com.itheima.health.mapper;

import com.itheima.health.model.pojos.CheckItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CheckItemMapper {

    @Select("select * from t_checkitem")
    List<CheckItem> getAll();
    @Select("select checkitem_id from t_checkgroup_checkitem where checkgroup_id=#{checkGroupId}")
    List<Integer> getCheckItemsByCheckGroupId(Integer checkGroupId);
}
